Skip to content

Conversation

iluuu1994
Copy link
Member

Fixes oss-fuzz #57821

op1 and op2 should always be evaluated, even if the class constant fetch itself fails. Otherwise we can get unexpected constant ASTs at runtime (e.g. Foo::class). This wasn't previously an issue because we don't allow (const_expr)::FOO in constant expressions, and op2 was always a string.

/cc @dstogov

@iluuu1994 iluuu1994 merged commit c4a1100 into php:master Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants